package cn.edu360.day09.dao;

import cn.edu360.day09.bean.User;

/**
 * Created by root on 2018/7/12.
 */
public interface UserDao {
    /**
     * 增加
     */
    boolean save(User user);


    /**
     * 查找，通过用户名查找
     */
    User getUserByName(String userName);

    /**
     * 删除
     */
    boolean delete(int id);

    /**
     * 修改用户
     */
    boolean update(User user);


}
